package org.springside.examples.showcase.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "FORM_VACATION")
public class Vacation extends IdEntity {
	
	private Date startTime;
	private int numOfDay;
	private String reason;
	private User user;
	
	public Date getStartTime() {
		return startTime;
	}
	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	public int getNumOfDay() {
		return numOfDay;
	}
	public void setNumOfDay(int numOfDay) {
		this.numOfDay = numOfDay;
	}
	public String getReason() {
		return reason;
	}
	public void setReason(String reason) {
		this.reason = reason;
	}
	
	@ManyToOne
	@JoinColumn(name = "user_id")
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	
}
